package com.event.management.frontend.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 密码修改参数
 */
@Data
@ApiModel(description = "密码修改参数")
public class UpdatePasswordParam {
    
    @ApiModelProperty(value = "旧密码", required = true, example = "oldpassword")
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
    
    @ApiModelProperty(value = "新密码", required = true, example = "newpassword")
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, message = "密码长度不能少于6个字符")
    private String newPassword;
} 